package http

import "fmt"

type CircuitBreaker struct {
	handler Http
}

func (client *CircuitBreaker) Get(url string) {
	fmt.Println("circuitBreaker hit")
	client.handler.Get(url)
}

func NewCircuitBreaker(handler Http) Http {
	return &CircuitBreaker{
		handler: handler,
	}
}
